#!/bin/bash

# 提取依赖项行并使用awk提取包名及版本信息
dependencies=$(grep "^Depends:" filename.txt | sed 's/Depends://')
echo "$dependencies"
#echo "$dependencies" | awk -F '[(),]' '{for(i=2;i<=NF;i+=2) print $i}'
